<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>车龙惠APP</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
        list-style-type: none;
        overflow: hidden;
    }

    .wxtip {
        background: rgba(0, 0, 0, 0.8);
        text-align: center;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 998;
        display: none;
    }

    .wxtip-icon {
        width: 52px;
        height: 67px;
        background: url(/img/weixin-tip.png) no-repeat;
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .wxtip-txt {
        margin-top: 107px;
        color: #fff;
        font-size: 16px;
        line-height: 1.5;
    }

    .form-div {
        background: url(img/shopShare.png) no-repeat center 0px;
        background-position: center 0;
        background-size: cover;
        border-radius: 10px;
        border: 1px solid #aaa;
        width: 100vw;
        height: 100vh;
        margin: 0 auto;
        /* padding: 30px 0 20px 0px; */
        font-size: 12px;
        box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.5), 0px 0px 15px rgba(75, 75, 75, 0.3);
        text-align: left;
        position: relative;
    }

    #reg-form {
        width: 300px;
        height: 100px;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        text-align: center;
    }

    .form-div .buttons {
        float: right;
    }
</style>

<body>
<div class="form-div">

    <form id="reg-form" action="" method="post">
        <!-- <a href="https://snjt.oss-cn-beijing.aliyuncs.com/%E5%95%86%E5%9F%8E%E7%AB%AF.apk" id="JdownApp"></a> -->
        <img src="img/btnimg.png" style="width: 160px;height: 50px;" id="JdownApp" type="button" value="百度"
             onclick="jump()"/>
    </form>
    <div class="wxtip" id="JweixinTip">

        <span class="wxtip-icon"></span>

        <p class="wxtip-txt">点击右上角<br/>选择在浏览器中打开</p>

    </div>
    <script>
        function jump() {

            window.location.href = "https://snjt.oss-cn-beijing.aliyuncs.com/%E5%95%86%E5%9F%8E%E7%AB%AF.apk";

        }

        function weixinTip(ele) {

            var ua = navigator.userAgent;

            var isWeixin = !!/MicroMessenger/i.test(ua);

            if (isWeixin) {

                ele.onclick = function (e) {

                    window.event ? window.event.returnValue = false : e.preventDefault();

                    document.getElementById('JweixinTip').style.display = 'block';

                }

                document.getElementById('JweixinTip').onclick = function () {

                    this.style.display = 'none';

                }

            }

        }

        var btn1 = document.getElementById('JdownApp');//下载一

        weixinTip(btn1);

    </script>


</body>

</html>
